import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../pages/home.vue'
import Login from '../pages/login.vue'
import PhoneList from '../pages/phoneList.vue'
import ShowMusic from '../pages/showMusic.vue'
import ShowVideo from '../pages/showVideo.vue'
Vue.use(VueRouter)
export default new VueRouter({
    mode: 'abstract',
    routes: [
      {
        path: '*',
        redirect: '/home'
      },
      {
        path: '/home',
        component: Home,
        name: '主页'
      },
      {
        path: '/login',
        component: Login,
        name: '登录'
      },
      {
        path: '/phoneList',
        component: PhoneList,
        name: '通讯录'
      },
      {
        path: '/showMusic',
        component: ShowMusic,
        name: '音乐'
      },
      {
        path: '/showVideo',
        component: ShowVideo,
        name: '视频'
      }
    ]
  })


  

 